<?php

class Controller extends CController
{
	public $layout = 'main';
	
	public function success($message = '', $jumpUrl = '', $waitSecond = 3)
	{
		$this->layout = false;
		$this->renderFile('views/dispatch_jump.php',array(
			'type'		=> '操作成功！！',
			'message'	=> $message,
			'jumpUrl'	=> $jumpUrl,
			'waitSecond'=> $waitSecond
		));
		Yii::app()->end();
	}
	
	public function error($message = '', $jumpUrl = '', $waitSecond = 3)
	{
		$this->layout = false;
		$this->renderFile('views/dispatch_jump.php',array(
			'type'		=> '操作失败！！',
			'message'	=> $message,
			'jumpUrl'	=> $jumpUrl,
			'waitSecond'=> $waitSecond
		));
		Yii::app()->end();
	}
}
